cmake_minimum_required(VERSION 3.5.0)

project(d3d11)

set(CMAKE_CXX_STANDARD 17)

file(GLOB d3d11_src *.cpp)

add_library(dut ${d3d11_src})

add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

target_link_libraries(dut d3d11.lib dxgi.lib dxguid.lib D3DCompiler.lib winmm.lib)

find_package(stb)
target_link_libraries(dut stb)
